projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ed31fa
)
Style issue
author
Jethro Beekman
<jethro@jbeekman.nl>
Tue, 19 Apr 2016 18:59:25 +0000
(11:59 -0700)
committer
Jethro Beekman
<jethro@jbeekman.nl>
Tue, 19 Apr 2016 18:59:25 +0000
(11:59 -0700)
src/bin/cargo.rs
patch
|
blob
|
history
diff --git
a/src/bin/cargo.rs
b/src/bin/cargo.rs
index bfa6e87639f36111e73d3ba5b9081281f3d6ae64..9f144e2b85a3f772e76ab8223d14933dd2ad835e 100644
(file)
--- a/
src/bin/cargo.rs
+++ b/
src/bin/cargo.rs
@@
-247,9
+247,9
@@
fn list_commands(config: &Config) -> BTreeSet<String> {
#[cfg(unix)]
fn is_executable<P: AsRef<Path>>(path: P) -> bool {
use std::os::unix::prelude::*;
- fs::metadata(path).map(|metadata|
+ fs::metadata(path).map(|metadata|
{
metadata.is_file() && metadata.permissions().mode() & 0o111 != 0
- ).unwrap_or(false)
+
}
).unwrap_or(false)
}
#[cfg(windows)]
fn is_executable<P: AsRef<Path>>(path: P) -> bool {